package br.com.dp.dao.entidade;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the reserva_quarto database table.
 * 
 */
@Entity
@Table(name="reserva_quarto")
@NamedQuery(name="ReservaQuarto.findAll", query="SELECT r FROM ReservaQuarto r")
public class ReservaQuarto implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique=true, nullable=false, length=45)
	private String id;

	@Temporal(TemporalType.DATE)
	@Column(nullable=false)
	private Date fimPeriodo;

	@Column(nullable=false)
	private int idQuarto;

	@Temporal(TemporalType.DATE)
	@Column(nullable=false)
	private Date inicioPeriodo;

	@Column(nullable=false)
	private int pontos;

	@Column(nullable=false)
	private int precoTotalQuarto;

	//bi-directional many-to-one association to Reserva
	@ManyToOne
	@JoinColumn(name="idReserva", nullable=false)
	private Reserva reserva;

	public ReservaQuarto() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getFimPeriodo() {
		return this.fimPeriodo;
	}

	public void setFimPeriodo(Date fimPeriodo) {
		this.fimPeriodo = fimPeriodo;
	}

	public int getIdQuarto() {
		return this.idQuarto;
	}

	public void setIdQuarto(int idQuarto) {
		this.idQuarto = idQuarto;
	}

	public Date getInicioPeriodo() {
		return this.inicioPeriodo;
	}

	public void setInicioPeriodo(Date inicioPeriodo) {
		this.inicioPeriodo = inicioPeriodo;
	}

	public int getPontos() {
		return this.pontos;
	}

	public void setPontos(int pontos) {
		this.pontos = pontos;
	}

	public int getPrecoTotalQuarto() {
		return this.precoTotalQuarto;
	}

	public void setPrecoTotalQuarto(int precoTotalQuarto) {
		this.precoTotalQuarto = precoTotalQuarto;
	}

	public Reserva getReserva() {
		return this.reserva;
	}

	public void setReserva(Reserva reserva) {
		this.reserva = reserva;
	}

}